<template>
  <div class="map">
    <open-map></open-map>
    <open-control></open-control>
  </div>
  <div>
    <el-menu
    :default-active="activeIndex"
    class="el-menu-demo"
    mode="horizontal"
    @select="handleSelect"
  >
    <el-menu-item index="1">视频监控</el-menu-item>
    <el-sub-menu index="2">
      <template #title>管理事件</template>
      <el-menu-item index="2-1">添加事件</el-menu-item>
      <el-menu-item index="2-2">查询事件</el-menu-item>
      <el-menu-item index="2-3">更新事件</el-menu-item>
      <el-sub-menu index="2-4">
        <template #title>item four</template>
        <el-menu-item index="2-4-1">item one</el-menu-item>
        <el-menu-item index="2-4-2">item two</el-menu-item>
        <el-menu-item index="2-4-3">item three</el-menu-item>
      </el-sub-menu>
    </el-sub-menu>
    <el-menu-item index="3" disabled>Info</el-menu-item>
    <el-menu-item index="4">Orders</el-menu-item>
  </el-menu>
  </div>
</template>

<script setup>
import OpenMap from '../../components/OpenMap.vue'
import OpenControl from '../../components/OpenControl.vue'
// import NavTable from '../../components/NavTable.vue'
</script>

<style scoped>
.map{
  margin-top: 40px;
}
.el-menu.el-menu--horizontal.el-menu-demo{
  position: fixed;
  top: 0;
  width: 100vw;
  height: 40px;
}
</style>
